package com.briup.day14.bean;

//形状类：抽象类
public abstract class Shape {
    private String name;

    //构造方法
    public Shape() {
        System.out.println("in Shape() ...");
    }
    public Shape(String name) {
        System.out.println("in Shape(String) ...");
        this.name = name;
    }

    //抽象方法
    public abstract double getArea();
}
